/**
 * Created by twer on 15/3/1.
 */
var microblog = angular.module('microblog');

microblog.factory('MicroBlogListService', ['$resource', 'RootPathConstant', function ($resource, RootPathConstant) {
    return $resource(RootPathConstant + '/micro_blog/author/:author?keyword=:keyword&countPerPage=:countPerPage&offset=:offset',
        {keyword: ''},
        {query: {method: 'GET', isArray: false}}
    );
}]);

microblog.factory('MicroBlogEditService', ['$resource', 'RootPathConstant', function ($resource, RootPathConstant) {
    return $resource(RootPathConstant + '/micro_blog/:id', {},
        {
            save: {method: 'POST'},
            remove: {method: 'DELETE'}
        }
    );
}]);
